between

public static TimeRange between(Timestamp start, Timestamp end)

Creates TimeRange between two points in time.

Parameters

start

the start point in time

end

the end point in time

Throws

if start is equal or after end.